<?php html::docType() ?>
<html>
<head>
	<?php html::head() ?>
	<!--  <link rel="stylesheet" type="text/css" href="../css/vic.css">-->
	<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="container">
		<?php html::navBar2() ?>
		<?php html::flash() ?>
		<div id="content">	 
			<div class="section" id="main">
			 
				<div class="section-title">
					<h1>Offer > Add New</h1>
				</div>
				<div style="margin-top:20px">
				<form action="router.php" method="POST">
				<div style="float:left">
					
						<input type="hidden" name="c" value="offer" />
						<input type="hidden" name="a" value="create" />
						<input type="hidden" name="user_id" value="<?php $_SESSION['user']['id']?>" />
	
						<div style="float:left"><b>Price:</b> <select name="price"> 
							<?php
								for ($i=1;$i<=20;$i++) {
								echo "<option value=$i>$i</option>";
								}
							?>
									</select>
						</div>
						
						<div style="float:right">
							<b>Size:</b> <select name="size_id">
								<?php
									foreach ($view->sizes as $size) {
									echo "<option value={$size['id']}>{$size['size']}</option>";
									}
								?>
								</select>
						</div><br/><br/>
						
						<div>
							<b>Venue:</b><br> <select name="venue_id">
							<?php
								foreach ($view->venues as $venue) {
									echo "<option value={$venue['id']}>{$venue['name']}</option>";
								}
							?>
				
									</select>
						</div><br/>
				
						<div><b>Beer:</b><br><select name="beers[]"  multiple size=6 style="width:240px">
							<?php
								foreach ($view->beers as $beer) {
									echo "<option name=beer_id value={$beer['id']}>{$beer['name']}</option>";
								}
							?>
									</select>
						</div><br/>
					</div>	
						<div style="float:right">
						<div>
							<div style="float:left">
								<b>Date From:</b> <input type="text" name="date_from" title="dd/mm/yyyy" style="width:80px" /> 
							</div>
							<div style="float:right">
								<b>Date To:</b> <input type="text" name="date_to" title="dd/mm/yyyy" style="width:80px" /> 
							</div>
						</div><br/><br/>
				
						
						<div>
							<div style="float:left">
								<b>Time From:</b> <input type="text" name="time_from" title="eg. 10:20" style="width:80px"/>
							</div>
							<div style="float:right"> 
								<b>Time To:</b> <input type="text" name="time_to" title="eg. 20:40" style="width:80px"/>
							</div>
						</div><br/><br/>
						
						<div>
						<b>Happening on:</b><br/>
							<input type="checkbox" name="mon"/>Mon 
							<input type="checkbox" name="tue"/>Tue 
							<input type="checkbox" name="wen"/>Wen 
							<input type="checkbox" name="thu"/>Thu 
							<input type="checkbox" name="fri"/>Fri 
							<input type="checkbox" name="sat"/>Sat
							<input type="checkbox" name="sun"/>Sun
						</div><br/>
						
						<div>
							<b>Description:</b><br/> <textarea id="descrip" name="description" title="Tell us a little bit more" cols="38"> </textarea> 
						</div><br/><br/>
						</div>
						<div style="float:right">
							<input type="submit" value="Save" class="button">
						</div>
					
				</div>
				</form>
			</div>
	</div>
	<?php html::footer2()?>
</div>
</body>
</html>
<!-- //	<div>A {$beer['id']} made by {$beer['brewery']['name']} from {$beer['brewery']['country']['name']}</div> -->